package com.szewec.ps.base;

/**
 * 常量类
 */
public class Constants {
    public interface REQUEST_CODE {
        //录音
        int RECORD_SOUND = 8004;

        int LOCATION = 8005;
        //无用
        int NOT_NEED = 4000;
        //类型等复选页面
        int MULTI_SELECT_CODE = 10012;


        //照片及视频相关
        //拍照
        int FIELD_SURVEY_CAPTURE = 100;
        //录制
        int FIELD_SURVEY_VIDEO = 200;
        //预览
        int FIELD_SURVEY_PREVIEW = 300;
        //本地图库
        int FIELD_SURVEY_LOCAL_MEDIA = 400;

        //搜索调查对象
        int SEARCH_SURVEY_OBJECT = 8006;

    }

    /**
     * OSS上传附件相关
     */
    public static final String FOLDER_NAME = "pmms_file/";
    public static final String FIRST_FRAME = "video_First_Img.jpg";
    public static final int UPLOAD = 1;
    public static final int UPLOAD_FAILURE = 2;
    public static final int DELETE = 3;

    public interface RESULT_CODE {
        //无用
        int USELESS = 9000;
        //需要刷新
        int NEED_REFRESH = 9001;
        //删除
        int DELETE = 9002;
        //地图选择坐标用
        int SELECTED_POINT = 9003;
        //搜索调查对象
        int SEARCH_SURVEY_OBJECT = 9004;
    }

    public interface RESULT_FLAG {
        String INSERT_OR_UPDATE = "insertOrUpdate";
        String DELETE = "delete";
    }

    /**
     * 自定义的输入框的类型
     */
    public interface InputType {
        String DEFAULT = "input";
        String SELECT = "select";
    }

    /**
     * 有无
     */
    public interface HaveOrNot {
        String YES = "有";
        String NO = "无";
    }

    /**
     * 有无得数组下标
     */
    public interface HaveOrNotIndex {
        int YES = 0;
        int NO = 1;
    }

    /**
     * 选项目和阶段时的标签
     */
    public interface ProjectAndStageTag {
        int PROJECT = 1;
        int STAGE = 2;
    }


    /**
     * 页面传值flag
     */
    public interface PRESENT_VALUE_FLAG {
        String ADD = "add";
        String EDIT = "edit";
        String VIEW = "view";
        String VIEW_ONE = "view_1";
        String LIST = "list";
        //无用
        String USELESS = "useless";
    }

    /**
     * 选择坐标flag
     */
    public interface SELECT_COOR_FLAG {
        //测距
        String RANGING = "ranging";
        //选择坐标
        String SELECT_COOR = "selectCoor";
    }

    public static final String PRESENT_VALUE = "presentValue";
    public static final String ITEM_ACTION = "itemAction";

    /**
     * extra Key
     */
    public interface EXTRA_KEY {
        //登陆
        String LOGIN = "login";
        //类型等复选页面
        String MULTI_SELECT_VALUE = "multiSelectValue";
        //地图选择位置
        String MAP_CENTER_POINT = "mapCenterPoint";
        //选择坐标
        String SELECT_COOR = "selectCoor";

        //选择设施类型
        String SELECT_FACILITY_TYPE = "selectFacilityType";

        String ROAD_INTERSECTION_TASK = "roadIntersectionTask";

        String ROAD_INVESTIGATION_TASK = "roadInvestigationTask";
        //保存道路等级
        String ROAD_LEVEL = "roadLevel";

        //添加进口道
        String ENTRANCE_ROAD = "entranceRoad";

        String VEHICLE_LANE = "vehicleLane";

        String SURVEY_OBJECT = "surveyObject";

        // 现代轨道交通
        String ROAD_MODERN_URBAN_TRANSIT = "roadModernUrbanTransit";
        // 路段设施调查DTO
        String ROAD_INVESTIGATION_TASK_DTO = "roadInvestigationTaskDTO";

        //搜索调查对象
        String SEARCH_SURVEY_OBJECT = "searchSurveyObject";

        // 交通量调查任务
        String ROAD_TRAFFIC_INVESTIGATION_TASK = "roadTrafficInvestigationTask";
    }

    public interface BizType {

    }

    /**
     * 连接符
     */
    public static final String CONNECTOR = "~";
    public static final String COMMA = ",";
    public static final String UNDERLINE = "_";

    /**
     * 文件类型
     */
    public interface FileType {
        int PHOTO = 0;
        int VIDEO = 1;
        int RECORD_SOUND = 2;
    }

    /**
     * 离线状态下每行照片的列数
     */
    public final static int SPAN_COUNT = 1;

    /**
     * 录音状态:1-录音未开始 2-录音中 3-播放未开始 4-播放中 5-播放暂停中
     */
    public interface RecordSoundStatus {
        int RECORD_UNSTART = 1;
        int RECORDING = 2;
        int PLAY_UNSTART = 3;
        int PLAYING = 4;
        int PAUSE = 5;
    }

    /**
     * 请求返回状态码
     */
    public interface ResponseCode {
        int SUCCESS = 10000;
        int DATA_NOT_EXIST = 40000;
    }

    /**
     * 请求错误提示信息
     */
    public interface ErrorMsg {
        String INTERNAL_SERVICE_ERROR = "服务器异常,请联系系统管理员";
        String NOT_UPDATE = "未做任何修改";
    }

    /**
     * 调查对象类型
     */
    public interface SurveyObjectType{
        //路段设施
        int ROAD_SECTION_FACILITIES = 0;
        //路口设施
        int ROAD_INTERSECTION_FACILITIES = 1;
        //路段交通量
        int ROAD_SECTION_TRAFFFIC = 2;
        //路口交通量
        int ROAD_INTERSECTION_TRAFFFIC = 3;
    }
}
